file1=mascots2011

all:	$(file1) cleanup

$(file1):	$(file1).pdf

$(file1).pdf:	$(file1).tex *.bib
		pdflatex $(file1)
		bibtex $(file1)
		pdflatex $(file1)
		pdflatex $(file1)

clean:	
	rm -f *.aux *.bbl *.blg *.log *.bak $(file).ps $(file1).pdf *.dvi *.tex~ makefile~

cleanup:	
	rm -f *.aux *.bbl *.blg *.log *.bak *.dvi *.tex~ makefile~